#ifndef __IPADDRESS_PORT_H__
#define __IPADDRESS_PORT_H__

#include <string>

class IpAddressPort {
private:
    std::string m_ip;
    uint32_t m_port;

public:
    IpAddressPort();
    IpAddressPort(std::string,  uint32_t);
    IpAddressPort &operator=(IpAddressPort ipAddressPort)
    {
        m_ip = ipAddressPort.m_ip;
        m_port =ipAddressPort.m_port;
        return *this;
    }
    std::string ToString() const;
    void SetIpAddress(const std::string& ip);
    std::string GetIpAddress() const;
    void SetPort(unsigned short);
    unsigned short GetPort() const;
};


#endif